home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 117 / PC Guia 117.iso / Software / Produtividade / Software2 / Product4 / Setup.exe / drupal-4.6.0 / sites / default / settings.php
Encoding:
PHP Script  |  2005-04-14  |  4.2 KB  |  129 lines

  1. <?php
  2. // $Id: settings.php,v 1.12.2.2 2005/04/14 18:35:19 dries Exp $
  3.  
  4. /**
  5.  * @file
  6.  * Drupal site-specific configuration file.
  7.  *
  8.  * The configuration file to be loaded is based upon the rules below.
  9.  *
  10.  * The configuration directory will be discovered by stripping the
  11.  * website's hostname from left to right and pathname from right to
  12.  * left. The first configuration file found will be used and any
  13.  * others will be ignored. If no other configuration file is found
  14.  * then the default configuration file at 'sites/default' will be used.
  15.  *
  16.  * For example, for a fictitious site installed at
  17.  * http://www.drupal.org/mysite/test/, the 'settings.php'
  18.  * is searched in the following directories:
  19.  *
  20.  *  1. sites/www.drupal.org.mysite.test
  21.  *  2. sites/drupal.org.mysite.test
  22.  *  3. sites/org.mysite.test
  23.  *
  24.  *  4. sites/www.drupal.org.mysite
  25.  *  5. sites/drupal.org.mysite
  26.  *  6. sites/org.mysite
  27.  *
  28.  *  7. sites/www.drupal.org
  29.  *  8. sites/drupal.org
  30.  *  9. sites/org
  31.  *
  32.  * 10. sites/default
  33.  */
  34.  
  35. /**
  36.  * Database settings:
  37.  *
  38.  * Note that the $db_url variable gets parsed using PHP's built-in
  39.  * URL parser (i.e. using the "parse_url()" function) so make sure
  40.  * not to confuse the parser. If your username, password
  41.  * or database name contain characters used to delineate
  42.  * $db_url parts, you can escape them via URI hex encodings:
  43.  *
  44.  *   : = %3a   / = %2f   @ = %40
  45.  *   + = %2b   ( = %28   ) = %29
  46.  *   ? = %3f   = = %3d   & = %26
  47.  *
  48.  * To specify multiple connections to be used in your site (i.e. for
  49.  * complex custom modules) you can also specify an associative array
  50.  * of $db_url variables with the 'default' element used until otherwise
  51.  * requested.
  52.  *
  53.  * You can optionally set prefixes for some or all database table names
  54.  * by using the $db_prefix setting. If a prefix is specified, the table
  55.  * name will be prepended with its value. Be sure to use valid database
  56.  * characters only, usually alphanumeric and underscore. If no prefixes
  57.  * are desired, leave it as an empty string ''.
  58.  *
  59.  * To have all database names prefixed, set $db_prefix as a string:
  60.  *
  61.  *   $db_prefix = 'main_';
  62.  *
  63.  * To provide prefixes for specific tables, set $db_prefix as an array.
  64.  * The array's keys are the table names and the values are the prefixes.
  65.  * The 'default' element holds the prefix for any tables not specified
  66.  * elsewhere in the array. Example:
  67.  *
  68.  *   $db_prefix = array(
  69.  *     'default'   => 'main_',
  70.  *     'users'     => 'shared_',
  71.  *     'sessions'  => 'shared_',
  72.  *     'role'      => 'shared_',
  73.  *     'authmap'   => 'shared_',
  74.  *     'sequences' => 'shared_',
  75.  *   );
  76.  *
  77.  * Database URL format:
  78.  * $db_url = 'mysql://username:password@localhost/database';
  79.  * $db_url = 'pgsql://username:password@localhost/database';
  80.  */
  81. $db_url = 'mysql://username:password@localhost/database';
  82. $db_prefix = '';
  83.  
  84. /**
  85.  * Base URL:
  86.  *
  87.  * The URL of your website's main page. It is not allowed to have
  88.  * a trailing slash; Drupal will add it for you.
  89.  */
  90. $base_url = 'http://localhost';
  91.  
  92. /**
  93.  * PHP settings:
  94.  *
  95.  * To see what PHP settings are possible, including whether they can
  96.  * be set at runtime (ie., when ini_set() occurs), read the PHP
  97.  * documentation at http://www.php.net/manual/en/ini.php#ini.list
  98.  * and take a look at the .htaccess file to see which non-runtime
  99.  * settings are used there. Settings defined here should not be
  100.  * duplicated there so as to avoid conflict issues.
  101.  */
  102. ini_set('arg_separator.output',     '&');
  103. ini_set('magic_quotes_runtime',     0);
  104. ini_set('magic_quotes_sybase',      0);
  105. ini_set('session.cache_expire',     200000);
  106. ini_set('session.cache_limiter',    'none');
  107. ini_set('session.cookie_lifetime',  2000000);
  108. ini_set('session.gc_maxlifetime',   200000);
  109. ini_set('session.save_handler',     'user');
  110. ini_set('session.use_only_cookies', 1);
  111. ini_set('session.use_trans_sid',    0);
  112.  
  113. /**
  114.  * Variable overrides:
  115.  *
  116.  * To override specific entries in the 'variable' table for this site,
  117.  * set them here. You usually don't need to use this feature. This is
  118.  * useful in a configuration file for a vhost or directory, rather than
  119.  * the default settings.php. Any configuration setting from the 'variable'
  120.  * table can be given a new value.
  121.  */
  122. //$conf = array(
  123. //  'site_name' => 'My Drupal site',
  124. //  'theme_default' => 'pushbutton',
  125. //  'anonymous' => 'Visitor'
  126. //);
  127.  
  128. ?>
  129.